//
//  LibWebViewViewController.m
//  NBProduct
//
//  Created by ping on 15/11/23.
//  Copyright (c) 2015年 ping. All rights reserved.
//

#import "LibWebViewViewController.h"

@interface LibWebViewViewController ()
{
    UIWebView *_myWebView;
}
@end

@implementation LibWebViewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self drawNavWithTitle:_myTitle];
    [self drawBackButton];
    [self drawView];
    [self requestData];
}

-(void)drawView{
    //清除UIWebView的缓存
    [[NSURLCache sharedURLCache] removeAllCachedResponses];
    _myWebView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 64, KScreenWidth, KScreenHeight - 64)];
    
    [self.view addSubview:_myWebView];

}

-(void)requestData{
  //  [TCUtils showLoadingWithView:self.view];
//    [NetWorking jieKouQingQiu:SHuoMingWeb And:@{@"code":_code} anBlock:^(NSDictionary *dic, NSError *error) {
//        [TCUtils hiddonLoadingWithView:self.view];
//        if (!error) {
//            if ([[dic objectForKey:Code]intValue] == 200) {
//                [_myWebView loadHTMLString:[[dic objectForKey:Response]objectForKey:@"content"] baseURL:nil];
//            }
//        }
//    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
